#include <stdio.h>
#include <time.h>

time_t start, end,c_time;

int time_to_wait = 1, running = 1;

int main( void )
{
start = time(NULL); //start time

printf("Program Started at %d\n", start);



while (running == 1)
{
	c_time = time(NULL); // current time

	if (c_time - start > time_to_wait) 
	{
		printf("%d Seconds have Passed\n", time_to_wait);

		time_to_wait += 1; //increment time_to_wait so that the if statement (c_time - start > time_to_wait) is still valid
	}

}

end = time(NULL); //end time


printf("Ended at %d\n", end);

return 0;
}
